SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{9629d6bb51268ebcaf50d05ce1f6dbd7c477660a42fdf895f06be6c1d7e3364f}Bellapais{9629d6bb51268ebcaf50d05ce1f6dbd7c477660a42fdf895f06be6c1d7e3364f}' OR prCity = 'Bellapais' OR prZip = 'Bellapais' OR prStreet LIKE '{9629d6bb51268ebcaf50d05ce1f6dbd7c477660a42fdf895f06be6c1d7e3364f}Bellapais{9629d6bb51268ebcaf50d05ce1f6dbd7c477660a42fdf895f06be6c1d7e3364f}' OR prCountry = 'Bellapais') AND (prLocation LIKE '{9629d6bb51268ebcaf50d05ce1f6dbd7c477660a42fdf895f06be6c1d7e3364f}Cyprus{9629d6bb51268ebcaf50d05ce1f6dbd7c477660a42fdf895f06be6c1d7e3364f}' OR prCity = 'Cyprus' OR prZip = 'Cyprus' OR prStreet LIKE '{9629d6bb51268ebcaf50d05ce1f6dbd7c477660a42fdf895f06be6c1d7e3364f}Cyprus{9629d6bb51268ebcaf50d05ce1f6dbd7c477660a42fdf895f06be6c1d7e3364f}' OR prCountry = 'Cyprus')